//
//  chengShiCell.m
//  MDDNew
//
//  Created by 孙昊坤 on 15/10/29.
//  Copyright © 2015年 heqing. All rights reserved.
//

#import "chengShiCell.h"

#import "UIView+WLFrame.h"

@implementation chengShiCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _bianKuang = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 170, 170)];
        _bianKuang.backgroundColor = [UIColor whiteColor];
//        _bianKuang.layer.borderWidth = 0.5;
        UIColor *color = [UIColor colorWithHue:146/255 saturation:146/255 brightness:146/255 alpha:1];
//        _bianKuang.layer.borderColor = [color CGColor];
        _bianKuang.layer.shadowOffset = CGSizeMake(0, 1);
        _bianKuang.layer.shadowOpacity = 0.3;
        _bianKuang.layer.shadowColor = [color CGColor];
        
        [self addSubview:_bianKuang];
        
        _tuPian = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 170, 100)];
        
        [_bianKuang addSubview:_tuPian];
        
        _renShu = [[UILabel alloc] initWithFrame:CGRectMake(10, _tuPian.bottom + 5, 165, 20)];
        _renShu.font = [UIFont systemFontOfSize:12];
        _renShu.textColor = [UIColor grayColor];
        [_bianKuang addSubview:_renShu];
        
        _daiBiao = [[UILabel alloc] initWithFrame:CGRectMake(_renShu.left, _renShu.bottom + 5, 155, 30)];
        [_bianKuang addSubview:_daiBiao];
        
        _chengShiMIng = [[UILabel alloc] initWithFrame:CGRectMake(35, 30, 100, 20)];
        _chengShiMIng.textAlignment = NSTextAlignmentCenter;
        _chengShiMIng.text = @"香港";
        _chengShiMIng.font = [UIFont systemFontOfSize:14];
        _chengShiMIng.textColor = [UIColor whiteColor];
        [_tuPian addSubview:_chengShiMIng];
        
        _yingWenMing = [[UILabel alloc] initWithFrame:CGRectMake(35, 50, 100, 20)];
        _yingWenMing.font = [UIFont systemFontOfSize:12];
        _yingWenMing.textAlignment = NSTextAlignmentCenter;
        _yingWenMing.textColor = [UIColor whiteColor];
        [_tuPian addSubview:_yingWenMing];
        
    }
    return self;
}

@end
